import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import state from './state'
// 核心模块
import db from './core/db'
import page from './core/page'
import account from './core/account'
import menu from './core/menu'

// 通用数据
import {
    sharing
} from './sharing'
// 楼栋管理
import { houseBuildings } from './house/buildings'
// 房间管理
import { houseRoom } from './house/room'
// 租户管理
import { rentUser } from './rent/user'
// 租约管理
import { rentContract } from './rent/contract'
Vue.use(Vuex)

export default new Vuex.Store({
    getters,
    state,
    modules: {
        db,
        page,
        account,
        menu,
        sharing,
        houseRoom,
        houseBuildings,
        rentUser,
        rentContract
    }
})